/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cc.altius.model;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 *
 * @author mudassar
 */
@Entity
@Table(name = "sms_situation_sms_template")
public class SmsSituationSmsTemplate implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "SMS_SITUATION_TEMPLATE_ID")
    private int smsTemplateId;
    @JoinColumn(name = "SMS_TEMPLATE_ID", referencedColumnName = "SMS_TEMPLATE_ID")
    @ManyToOne(optional = true)
    private SmsTemplate smsTemplate;
    @JoinColumn(name = "SMS_SITUATION_ID", referencedColumnName = "SMS_SITUATION_ID")
    @ManyToOne(optional = true)
    private SmsSituation smsSituation;

    public SmsSituation getSmsSituation() {
        return smsSituation;
    }

    public void setSmsSituation(SmsSituation smsSituation) {
        this.smsSituation = smsSituation;
    }

    public SmsTemplate getSmsTemplate() {
        return smsTemplate;
    }

    public void setSmsTemplate(SmsTemplate smsTemplate) {
        this.smsTemplate = smsTemplate;
    }

    public int getSmsTemplateId() {
        return smsTemplateId;
    }

    public void setSmsTemplateId(int smsTemplateId) {
        this.smsTemplateId = smsTemplateId;
    }
}
